package com.service.device;

import com.dao.secondary.device.DevicePcbGpsImgInfoMapper;
import com.github.pagehelper.PageHelper;
import com.model.domain.device.GetDevicePcbGpsImgInfoDO;
import com.model.pojo.device.DevicePcbGpsImgInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author: zql
 * @Description: PCB定位图片信息服务
 * @Data: 2023-04-16
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class DevicePcbGpsImgInfoService {
    private final DevicePcbGpsImgInfoMapper devicePcbGpsImgInfoMapper;
    public List<DevicePcbGpsImgInfo> getPageList(GetDevicePcbGpsImgInfoDO getDevicePcbGpsImgInfoDO){
        PageHelper.clearPage();
        PageHelper.startPage(getDevicePcbGpsImgInfoDO.getPage(), getDevicePcbGpsImgInfoDO.getPageSize(), getDevicePcbGpsImgInfoDO.getSortRow() + getDevicePcbGpsImgInfoDO.getSortOrder());
        return devicePcbGpsImgInfoMapper.selectList(getDevicePcbGpsImgInfoDO);
    }
}
